package com.guigu.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

@Data
public class OrdersParticulars {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    //父级id
    private Integer pId;

    //商品id
    private Integer gId;

    //购买数量
    private Integer buyQuantity;

    //总价格
    private Double sumPrice;

    //是否退货 0未退货 1待退货 2退货完成 3退货失败
    private Integer isReturn;

    //是否已出库
    //0：未出库
    //1：出库申请中
    //2：已出库
    private Integer isStorage;

    //出库详情id 关联出库详情表
    private Integer pdId;

    //商品对象 用于查询 商品
    @TableField(exist = false)
    private ShopInfo shopInfo;

    //订单对象
    @TableField(exist = false)
    private Orders orders;

    //申请退货对象
    @TableField(exist = false)
    private ReturnShopInfo returnShopInfo;

}